public class Person {
    String name;
    int age;
    int height;

    public Person(String name,int age,int height) {
        this.name = name;
        this.age = age;
        this.height = height;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", height=" + height +
                '}';
    }

    public static void main(String[] args) {
        Person per = new Person("张三",18,180);
        System.out.println(per);

    }
}
